package com.xiaolin.designmode.command;

/**
 * @ClassName ConcreteCommand1
 * @Description 具体命令角色
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/5
 * @Version 1.0
 */
public class ConcreteCommand1 implements Command {

    private Receiver1 receiver1;

    public ConcreteCommand1(Receiver1 receiver1){
        this.receiver1=receiver1;
    }
    @Override
    public void execute() {
        receiver1.action();
    }
}
